package com.voice.server.service;


import com.voice.server.entity.Function;
import com.voice.server.entity.User;
import com.voice.server.input.RegisterRequest;
import com.voice.server.input.ResetPasswordRequest;
import com.voice.server.input.SendCodeRequest;
import com.voice.server.input.UserQuery;
import com.wangjiacai.hqlQuery.service.BaseService;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface UserService extends BaseService {

    User login(String phone, String password);

    void registerRequest(RegisterRequest registerRequest);

    List<Function> findFunctionById(String userId);

    User findUserById(String userId);

    void sendSmsCode(SendCodeRequest sendSmsCodeRequest);

    void resetPassword(ResetPasswordRequest resetPasswordRequest);

    long getUserListNum(UserQuery userQuery);

    List<User> getUserList(UserQuery userQuery, Pageable pageable);
}
